package com.weiyuwqj.api.constant;


import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by huzj on 2016/12/23.
 */
public final class Global {
    private static Map<String, String> config = new ConcurrentHashMap();

    private Global() {

    }

    public static Map<String, String> getConfig() {
        return Global.config;
    }

    /**
     * 用户每日提现金额
     * @return
     */
    public static String getUserWithdrawAmount() {
        return Global.config.get("user_withdraw_amount");
    }

    /**
     * 平台每日提现金额
     * @return
     */
    public static String getPlatformWithdrawAmount() {
        return Global.config.get("platform_withdraw_amount");
    }

    /**
     * @return 服务密码
     */
    public static String getServiceRebatePassword() {
        return Global.config.get("service_rebate_password");
    }

    /**
     * @return 安卓app下载地址
     */
    public static String getMobileVersionUrl() {
        return Global.config.get("mobile_version_url");
    }

    /**
     * @return 安卓版本号
     */
    public static String getAndroidVersion() {
        return Global.config.get("android_version");
    }

    /**
     * @return 锁定前期限
     */
    public static String getDebtBeginLockDay() {
        return Global.config.get("debt_begin_lock_day");
    }

    /**
     * @return 锁定后期限
     */
    public static String getDebtEndLockDay() {
        return Global.config.get("debt_end_lock_day");
    }

    /**
     * @return 计划发布天数
     */
    public static String getAssetPlanReleaseDay() {
        return Global.config.get("asset_plan_release_day");
    }

    /**
     * 债权转让手续费率
     * @return
     */
    public static String getDebtServeFeeRate(){
        return Global.config.get("debt_serve_fee_rate");
    }

    /**
     * 获取ios版本号
     * @return
     * @return ios版本号
     */
    public static String getIosVersion() {
        return Global.config.get("ios_version");
    }

    /**
     * @return 短信发送的用户名
     */
    public static String getSmsUsername() {
        return Global.config.get("sms_username");
    }

    /**
     * @return 发送短信的密码
     */
    public static String getSmsPassword() {
        return Global.config.get("sms_password");
    }

    /**
     * @return 聚合函数的key
     */
    public static String getJuheAppkey() {
        return Global.config.get("juhe_appkey");
    }

    /**
     * @return 聚合函数请求地址
     */
    public static String getJuheUrl() {
        return Global.config.get("juhe_url");
    }

    /**
     * @return 后端版本号
     */
    public static String getVersion() {
        return Global.config.get("version");
    }

    /**
     * @return 授权人手机号
     */
    public static String getAuthorizationMobile() {
        return Global.config.get("authorization_mobile");
    }

    /**
     * @return 自有子账户id
     */
    public static String getOwnChildAccountId() {
        return Global.config.get("own_child_account_id");
    }

    /**
     * @return 手续费子账户id
     */
    public static String getChargeAccountId() {
        return Global.config.get("charge_account_id");
    }

    /**
     * @return 体验金子账户id
     */
    public static String getExperienceGoldAccountId() {
        return Global.config.get("experience_gold_account_id");
    }

    /**
     * @return 抵用金子账户id
     */
    public static String getVoucherAccountId() {
        return Global.config.get("voucher_account_id");
    }

    /**
     * @return 加息金子账户id
     */
    public static String getIncreasesGoldAccountId() {
        return Global.config.get("increases_gold_account_id");
    }

    /**
     * @return 保证金子账户id
     */
    public static String getCashDepositAccountId() {
        return Global.config.get("cash_deposit_account_id");
    }

    /**
     * @return 在途垫付账户id
     */
    public static String getCashAdvancesAccountId() {
        return Global.config.get("cash_advances_account_id");
    }

    /**
     * @return 现金垫付账户id
     */
    public static String getOngoingAdvancesAccountId() {
        return Global.config.get("ongoing_advances_account_id");
    }

    /**
     * @return 平台充值回调地址
     */
    public static String getPlatformChargeNoticeUrl() {
        return Global.config.get("platform_charge_notice_url");
    }

    /**
     * @return 平台提现回调地址
     */
    public static String getPlatformWithdrawNoticeUrl() {
        return Global.config.get("platform_withdraw_notice_url");
    }

    /**
     * @return 邮件发送接收人
     */
    public static String getMailRecipient() {
        return config.get("mail_recipient");
    }

    /**
     * @return 邮件发送来源
     */
    public static String getMailSender() {
        return config.get("mail_sender");
    }

    /**
     * @return 邮件发送主机
     */
    public static String getMailHost() {
        return config.get("mail_host");
    }


    /**
     * @return 邮件发送账户用户名
     */
    public static String getMailUsername() {
        return config.get("mail_username");
    }


    /**
     * @return 邮件发送账户密码
     */
    public static String getMailPassword() {
        return config.get("mail_password");
    }

    /**
     * @return 邮件主题
     */
    public static String getMailSubject() {
        return config.get("mail_subject");
    }

    /**
     * @return 邮件主题
     */
    public static String getMailContent() {
        return config.get("mail_content");
    }



}
